package net.sunbeta.test.helloworld;

import com.google.inject.Inject;

public class FooController {
	@Inject
	private FooManager fooManager;

	// ----- Controller Actions
	// -------------------------------------------------
	public Foo create(String name) {
		Foo foo = new Foo();
		foo.setName(name);
		fooManager.save(foo);
		return foo;
	}

	public Foo retrieve(Long id) {
		return fooManager.get(id);
	}

}
